# frv testcase for sethi $s16,$GRk
# mach: all

	.include "testutils.inc"

	start

	.global sethi
sethi:
	set_gr_immed	0,gr1
	sethi		0,gr1
	test_gr_immed	0,gr1
	sethi		1,gr1
	test_gr_immed	0x00010000,gr1
	sethi		0x7fff,gr1
	test_gr_immed	0x7fff0000,gr1

	pass
